package com.estronger.shopmanage.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;

public class B9Share implements Parcelable {
    public String title;
    public boolean isessence;
    public String author;
    public String address;
    public String distributedate;


    protected B9Share(Parcel in) {
        title = in.readString();
        isessence = in.readByte() != 0;
        author = in.readString();
        address = in.readString();
        distributedate = in.readString();
    }

    public static final Creator<B9Share> CREATOR = new Creator<B9Share>() {
        @Override
        public B9Share createFromParcel(Parcel in) {
            return new B9Share(in);
        }

        @Override
        public B9Share[] newArray(int size) {
            return new B9Share[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(title);
        parcel.writeByte((byte) (isessence ? 1 : 0));
        parcel.writeString(author);
        parcel.writeString(address);
        parcel.writeString(distributedate);
    }
}
